package org.linlinjava.litemall.db.dao;

import java.util.List;

import com.github.yulichang.base.MPJBaseMapper;
import org.apache.ibatis.annotations.Param;
import org.linlinjava.litemall.db.domain.LumiereSubscribeUser;
import org.linlinjava.litemall.db.domain.LumiereSubscribeUserExample;
import org.linlinjava.litemall.db.dto.SubscribeUserOrderDTO;

public interface LumiereSubscribeUserMapper extends MPJBaseMapper<LumiereSubscribeUser> {
    long countByExample(LumiereSubscribeUserExample example);

    int deleteByExample(LumiereSubscribeUserExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(LumiereSubscribeUser record);

    int insertSelective(LumiereSubscribeUser record);

    LumiereSubscribeUser selectOneByExample(LumiereSubscribeUserExample example);

    LumiereSubscribeUser selectOneByExampleSelective(@Param("example") LumiereSubscribeUserExample example, @Param("selective") LumiereSubscribeUser.Column ... selective);

    List<LumiereSubscribeUser> selectByExampleSelective(@Param("example") LumiereSubscribeUserExample example, @Param("selective") LumiereSubscribeUser.Column ... selective);

    List<LumiereSubscribeUser> selectByExample(LumiereSubscribeUserExample example);

    LumiereSubscribeUser selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LumiereSubscribeUser.Column ... selective);

    LumiereSubscribeUser selectByPrimaryKey(Integer id);

    LumiereSubscribeUser selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") LumiereSubscribeUser record, @Param("example") LumiereSubscribeUserExample example);

    int updateByExample(@Param("record") LumiereSubscribeUser record, @Param("example") LumiereSubscribeUserExample example);

    int updateByPrimaryKeySelective(LumiereSubscribeUser record);

    int updateByPrimaryKey(LumiereSubscribeUser record);

    int logicalDeleteByExample(@Param("example") LumiereSubscribeUserExample example);

    int logicalDeleteByPrimaryKey(Integer id);

    List<SubscribeUserOrderDTO> myOrderList(Integer page, Integer limit, Integer userId);
}
